{if $category} <a href="admin/modules/tangra_cms/category/category_content.php?category={$category->get_id()}" class="action_back">Back to category &quot;{$category->get_title()}&quot;</a> {else} <a href="admin/modules/tangra_cms/vpage/vpages.php" class="action_back">Back to virtual pages</a> {/if} <br />
<br />
<table width="100%" border="1" cellspacing="0" cellpadding="0" class="info_page_main_table">    
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Path<img src="/img/modules/tangra_cms/help_tip.gif" alt="" {popup text="Path of the VPage. You can change path only when vpage is offline."} style="border: 0px none ; vertical-align: top; margin-top: 2px; margin-right: 4px; margin-left:4px;"/></td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="left">{$vpage->get_path()}<br /> (<a href="http://{$_current_host}/{$vpage->get_path()}" target="_blank">http://{$_current_host}/{$vpage->get_path()}</a>)</td>
                                <td class="info_page_link_cell" align="center" width="160">
                                    {if !$vpage->get_online()}
                                        {if $vpage->get_sys_generated()}
                                        <span style="padding:4px;">System generated page.<br />Can't edit</span>
                                        {else}
                                        <a href="admin/modules/tangra_cms/vpage/vpage_edit.php?vpage_obj_id={$vpage->get_id()}&amp;_transit_return_to=admin/modules/tangra_cms/vpt/normal/vpage_man_normal.php" class="action_edit">Edit</a>
                                        {/if}
                                    {else}
                                        {if $vpage->get_sys_generated()}                        
                                        <span style="padding:4px;">System generated page.<br />Can't edit</span>
                                        {else}                            
                                        <span style="padding:4px;">Switch to offline to be able to edit</span>
                                        {/if}
                                    {/if}
                                </td>                                
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br />
<table width="100%" border="1" cellspacing="0" cellpadding="0" class="info_page_main_table">    
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td class="info_page_section_title" width="100">Status</td>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="4">
                            <tr>
                                <td align="left" width="250">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                        <tr>
                                            <td width="48" height="48">{if $vpage->get_online()}<a href="http://{$_current_host}/{$vpage->get_path()}" target="_blank" {popup text="Click to go to this page (new window)"}><img src="/img/modules/tangra_cms/online.png" alt="page is online" width="48" height="48" border="0" /></a>{else}<img src="/img/modules/tangra_cms/offline.png" alt="page is offline" width="48" height="48" />{/if}</td>
                                            <td valign="middle" width="100"><span style="font-size:130%; font-weight:bold;">{if $vpage->get_online()}Online{else}Offline{/if}</span></td>
                                            <td> {if $vpage->get_online()} <a href="/admin/modules/tangra_cms/vpt/normal/vpage_man_normal.php?manage={$vpage->get_id()}&amp;online=0">Switch to offline</a>{if $items_linking_to_vpage_count}<br />
                                                (<span class="status_warning">WARNING: There are menu items linked to this virtual page. If you switch this page to offline published menu items will stop working!</span>){/if}
                                                {else}
                                                {if $can_go_online} <a href="/admin/modules/tangra_cms/vpt/normal/vpage_man_normal.php?manage={$vpage->get_id()}&amp;online=1">Switch to online</a> {else} <span class="status_error"> You must fill title and content in order to switch to online. </span> {/if}
                                                {/if} </td>
                                            <td width="80">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td align="center"><a href="modules/tangra_cms/tangra_cms.php?vpage={$vpage->get_id()}&amp;previewcode={$_tcms_preview_code}" target="_blank"><img src="/img/modules/tangra_cms/preview.png" alt="preview" width="32" height="32" border="0"/></a></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center"><a href="modules/tangra_cms/tangra_cms.php?vpage={$vpage->get_id()}&amp;previewcode={$_tcms_preview_code}" target="_blank">Preview</a></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br />

<table width="100%" border="1" cellspacing="0" cellpadding="0" class="info_page_main_table">
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                <tr>
                    <td>
                        <table width="100%" border="0" cellspacing="1" cellpadding="0">
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                                        <tr>
                                            <td class="info_page_label_cell" width="200">&nbsp;<strong>&lt;TITLE&gt;</strong><img src="/img/modules/tangra_cms/help_tip_black.gif" alt="" {popup text="This text will be shown in browser's title bar. Please note that this title is different from the title in the content (of course you can use same text for title in the content) "} style="border: 0px none ; vertical-align: top; margin-top: 2px; margin-right: 4px; margin-left:4px;"/></td>
                                            <td class="info_page_content_cell">
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4">
                                                    <tr>
                                                        <td align="left">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                                                <tr>
                                                                    <td>{if $title && $title->get_value()}<span class="vpage_manage_page_title">{$title->get_value()|escape:"htmlall":"utf-8"}</span>{else}<span class="status_error">Empty. You must enter page title.</span>{/if}</td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                                        <tr>
                                            <td class="info_page_label_cell" width="200" valign="top">&nbsp;<strong>Content</strong><img src="/img/modules/tangra_cms/help_tip_black.gif" alt="" {popup text="Page content. HTML is allowed. You can attach pictures and files to it."} style="border: 0px none ; vertical-align: top; margin-top: 2px; margin-right: 4px; margin-left:4px;"/></td>
                                            <td>
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4">
                                                    <tr>
                                                        <td align="left">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                                                <tr>
                                                                    <td>
                                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                            <tr>
                                                                                <td>{if $content}<iframe height="300" width="100%" scrolling="auto" src="admin/modules/tangra_cms/ci/ci_normal_ci/ci_normal_ci_preview.php?ci={$content.id}"></iframe>{else}<span class="status_error">Empty. You must enter some content.</span>{/if}</td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>&nbsp;</td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td>
                                                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                                        <tr>
                                                                                            <td class="full_height">
                                                                                                <table width="100%" border="0" cellspacing="1" cellpadding="4" class="full_height">
                                                                                                    <tr>
                                                                                                        <td align="right" width="150" class="info_page_label_cell">Images</td>
                                                                                                        <td align="left" class="info_page_content_cell">
                                                                                                            {if $images}
                                                                                                            <table width="100%" border="0" cellpadding="2">
                                                                                                                {foreach from=$images item=image}
                                                                                                                <tr>
                                                                                                                    <td width="{$t2_width}" height="{$t2_height}" style="border:1px solid #000000;"><a href="admin/modules/tangra_cms/get_img_admin.php?imgid={$image->get_id()}" target="_blank"><img src="admin/modules/tangra_cms/get_img_admin.php?imgid={$image->get_id()}&amp;imgvar=t2" border="0" width="{$t2_width}" height="{$t2_height}" /></a></td>
                                                                                                                    <td align="left"><a href="admin/modules/tangra_cms/get_img_admin.php?imgid={$image->get_id()}" target="_blank">{$image->get_orig_filename()}</a></td>
                                                                                                                </tr>
                                                                                                                {/foreach}
                                                                                                            </table>
                                                                                                            {else} <span class="no_value">None</span>&nbsp;&nbsp;<a href="admin/modules/tangra_cms/ci/ci_image_select.php?ci={$ci_id}&amp;_transit_ret=admin/modules/tangra_cms/vpt/normal/vpage_man_normal.php&amp;_transit_vpage={$vpage->get_id()}&amp;_transit_vpt_context=1" class="action_select">Select image from existing</a>&nbsp;&nbsp;&nbsp;<a href="admin/modules/tangra_cms/image/image_upload.php?upload=1&amp;ci={$ci_id}&amp;_transit_ret=admin/modules/tangra_cms/vpt/normal/vpage_man_normal.php&amp;_transit_vpage={$vpage->get_id()}&amp;_transit_vpt_context=1" class="action_upload_image">Upload new image</a>
                                                                                                            {/if} </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td class="info_page_link_cell" align="center" width="180"><a href="admin/modules/tangra_cms/ci/ci_images.php?ci={$ci_id}&amp;_transit_ret=admin/modules/tangra_cms/vpt/normal/vpage_man_normal.php&amp;_transit_vpage={$vpage->get_id()}&amp;_transit_vpt_context=1" class="action_manage">Manage images</a>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="full_height">
                                                                                                <table width="100%" border="0" cellspacing="1" cellpadding="4" class="full_height">
                                                                                                    <tr>
                                                                                                        <td align="right" width="150" class="info_page_label_cell">Attachments</td>
                                                                                                        <td align="left" class="info_page_content_cell">
                                                                                                            {if $attachments}
                                                                                                            <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                                                                                                {foreach from=$attachments item=attachment}                                                
                                                                                                                <tr>
                                                                                                                    <td width="16"><img src="/img/modules/crystal_icons_small/16x16/save.png" alt="attachment" width="16" height="16" /></td>
                                                                                                                    <td align="left">{$attachment->get_orig_filename()} ({$attachment->get_size()/1024|string_format:"%.2f"} KB)</td>
                                                                                                                </tr>
                                                                                                                {/foreach}                                                    
                                                                                                            </table>
                                                                                                            {else}
                                                                                                            <span class="no_value">None</span>&nbsp;&nbsp;<a href="admin/modules/tangra_cms/ci/ci_attachment_select.php?ci={$ci_id}&amp;_transit_ret=admin/modules/tangra_cms/vpt/normal/vpage_man_normal.php&amp;_transit_vpage={$vpage->get_id()}&amp;_transit_vpt_context=1" class="action_select">Select file from existing</a>&nbsp;&nbsp;&nbsp;<a href="admin/modules/tangra_cms/attachment/attachment_upload.php?upload=1&amp;ci={$ci_id}&amp;_transit_ret=&amp;_transit_ret=admin/modules/tangra_cms/vpt/normal/vpage_man_normal.php&amp;_transit_vpage={$vpage->get_id()}&amp;_transit_vpt_context=1" class="action_upload_attachment">Upload new file</a>
                                                                                                            {/if}
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td class="info_page_link_cell" align="center" width="180"><a href="admin/modules/tangra_cms/ci/ci_attachments.php?ci={$ci_id}&amp;_transit_ret=admin/modules/tangra_cms/vpt/normal/vpage_man_normal.php&amp;_transit_vpage={$vpage->get_id()}&amp;_transit_vpt_context=1" class="action_manage">Manage attachments</a></td>
                                                                                        </tr>
                                                                                    </table>                                                   
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>    
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="info_page_section_table">
                                        <tr>
                                            <td class="info_page_label_cell" width="200">&nbsp;META description<img src="/img/modules/tangra_cms/help_tip_black.gif" alt="" {popup text="Nonmandatory short description of the page content that may be shown by the search engines in search results. It will be fed to &lt; meta name=&quot;description&quot; content=&quot;...&quot;&gt;. No HTML tags allowed. If you don't know how to use this field just leave it empty."} style="border: 0px none ; vertical-align: top; margin-top: 2px; margin-right: 4px; margin-left:4px;"/></td>
                                            <td class="info_page_content_cell">
                                                <table width="100%" border="0" cellspacing="1" cellpadding="4">
                                                    <tr>
                                                        <td align="left">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="4">
                                                                <tr>
                                                                    <td>{if $meta_description && $meta_description->get_value()}{$meta_description->get_value()}{else}<span class="no_value">--- Empty ---</span>{/if}</td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td class="info_page_link_cell" align="center" width="160" valign="top">
						<br /><a href="admin/modules/tangra_cms/vpt/normal/vpage_edit_normal.php?vpage_obj_id={$vpage->get_id()}" class="action_edit">Edit</a>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br />
<a href="admin/modules/tangra_cms/vpage/vpage_manage.php?manage={$vpage->get_id()}" class="action_advanced_vpage_management">Advanced VPage management</a> 